package com.carecenter.mapper;

import com.carecenter.entity.Admins;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lgh
 * @since 2021-04-14
 */
public interface AdminsMapper extends BaseMapper<Admins> {

    @Select("select * from admins")
    List<Admins> findAll();

    @Insert("insert into user (adminname, adminpassword) values(#{adminname}, #{adminpassword)")
    void save(Admins admin);
}
